package com.sjw.smarturl.repository;

import com.sjw.smarturl.entity.po.SmartUrlInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author sjw
 * @className ISmartUrlInfoRepository
 * @date 2020/9/1 15:19
 * @description: TODO
 */
@Repository
public interface ISmartUrlInfoRepository extends JpaRepository<SmartUrlInfo, Integer> {
    SmartUrlInfo findBySmartCodeAndIsdelete(String smartCode, int isDelete);

    SmartUrlInfo findByIdAndIsdelete(int id, int isDelete);
}